package com.why.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.why.common.utils.PageUtils;
import com.why.product.entity.CategoryEntity;
import com.why.product.vo.CateJsonVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author why
 * @email 1585049082@qq.com
 * @date 2021-04-25 20:22:52
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listByTree();

    void removeMenuByIds(List<Long> asList);

    Long[] findCatelogPath(Long catelogId);

    @Transactional
    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLeveloneCategories();

    Map<String, List<CateJsonVo>> getCatalogJson();
}

